# -*- coding:utf-8 -*-
from sqlalchemy import Column, Integer, String
from utils.mysql import Base

class DepartmentEntity(Base):
    """
    测试表
    """
    __tablename__ = 'department'

    id = Column(Integer, nullable=False, autoincrement=True, primary_key=True, comment='id')
    depname = Column(String(100), nullable=False, comment='部门名称')
    pid = Column(Integer, default=0, comment='上级部门')
    memo = Column(String(200), comment='简介')
